const moment = require('moment')
import config from '../config'
export default {
    priceFormat: function (value) {
        return '￥' + value;
    },
    timeStampFormat: function (value, arg) {
        return moment(value).format(arg);
    },
    avatarFilter:function(value){
        return value ? (value.includes('http') ? value : config.api() + value) : require('../assets/logo.png')
    }
}